import { Component } from 'react'
import observer from './observer'
class Child1 extends Component {

    render() {
        // console.log('要渲染dom了');
        
        return (
            <div>
                <button onClick={() => {
                    observer.dispatch('这是组件一的数据')
                }}>点击</button>
            </div>
        )
    }
}

export default Child1